﻿<%@ Page Title="" Language="C#" MasterPageFile="../App_Master/AdminMaster.master" 
AutoEventWireup="true" CodeFile="admin_Login.aspx.cs" Inherits="admin_Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
    <script src="../App_Themes/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../js/jquery-1.9.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        DD_belatedPNG.fix('*');
    </script>
    <script language="JavaScript">
        if (window != top)
            top.location.href = location.href;
</script> 
<script type="text/javascript">
              function form_longin_submit() {
                  if (jQuery('#username').val().length < 2) {
                      alert("用户名长度过短!"); 
                      return;
                  }
                  else if (jQuery('#userpass').val().length < 6) {
                      alert("密码长度过短!"); 
                      return;
                  } else {
                      var rs = jQuery('#username').val();
                      var rpass = jQuery('#userpass').val();
                      jQuery.ajax({
                          url: "/Ajax/MemberLogin.ashx",
                          data: { t: 's_admin_login', username: rs, userpass: rpass },
                          type: "POST",
                          success: function (data) {
                              if (data + '' == 'True' || data + '' == 'true') {
                                  window.location.href = '/manage/Mainframeset.aspx';
                              } else if (data + '' == 'fck' || data + '' == 'Fck') {
                                  alert('验证码错误!');
                              } else {
                                  alert('用户名或密码错误!');
                              }
                          }
                      });
                  }
              }
</script>
<div id="main" >
  <div class="about_title" >管理员登录</div>
  <div class="about" style="background:#fff;" >
    <div class="d_login" >
      <div class="profile profile1" style="border-top:none;">
          <ul class="profile-form">
            <li> <span class="v v1 v2"> 用户名：</span> <span class="k">
              <input class="input3 input7"  maxlength="16" name="username" id="username" />
             </span> </li>
            <li> <span class="v v1 v2"> 密码：</span> <span class="k">
             <input class="input3 input7"  maxlength="16" name="userpass" id="userpass" type="password" />
             </span> </li>
          </ul>
       </div>
       <div class="login_list_div1" ></div>
       <div class="ch_btn login_list_div2" > 
         <image src="../App_Themes/css/login_btn.jpg" onclick="javascript:form_longin_submit();" /> 
       </div>
    </div>
    <div class="clear" ></div>
  </div>
  <!--about  end-->
  <div class="clear" ></div>
</div>
<!--main  end-->
</asp:Content>

